package com.tdx.blog_nowcoder.dao;

import com.tdx.blog_nowcoder.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    User selectUserById(int id);

    User selectUserByName(String username);

    User selectUserByEmail(String email);

    int insertUser(User user);

    int updateUserStatus(int id, int status);

    int updateUserHeader(int id, String headerUrl);

    int updateUserPassword(int id, String password);

    int deleteUserById(int id);
}
